package com.springcloud.controller;

import com.springcloud.service.PayService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author xiaolei
 * @version V1.0.1
 * @projectName scums
 * @packageName com.springcloud.controller
 * @description desc
 * @email xiaolei@cscongheng.com
 * @date 2020-02-17 16:38
 **/
@RestController
public class RetryController {
    @Resource
    private PayService payService;

    @GetMapping("/add")
    public Object selectOne(int offset) {
        try {
            return   payService.createOrder(offset);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return new String("success");
    }
}
